package com.sky.yipinyoufujava.service;

import com.sky.yipinyoufujava.pojo.WxUserInfo;
import com.sky.yipinyoufujava.pojo.from.LoginForm;
import com.sky.yipinyoufujava.pojo.from.ModifyPasswordForm;
import com.sky.yipinyoufujava.pojo.from.RegisterForm;
import com.sky.yipinyoufujava.pojo.User;

public interface LoginService {
    /**
     * 登录
     */
    User login(LoginForm loginForm);

    Short queryUser(String name);

    void registerUser(RegisterForm registerForm);

    User queryUserId(Object id);

    void sentEmail(String userEmail, String msg, String context);

    void modifyPassword(int id, ModifyPasswordForm modifyPasswordForm);

    void updataUserInfo(User user);

    User queryUserByOpenId(String phone);

    void wxRegister(WxUserInfo wxUserInfo);
}
